﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management.Master" AutoEventWireup="true" CodeBehind="ShangCha.aspx.cs" Inherits="GataBaseSys.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Css/bootstrap.min.css" rel="stylesheet" />
    <style>
        img{
            width:200px;
            height:90px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder15" runat="server">
     <div runat="server">
                <asp:Label ID="Label1" runat="server" Text="请输入查询的内容"></asp:Label><asp:TextBox ID="TextBox1"  runat="server"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" />
            </div>
    <asp:Repeater ID="Repeater1" runat="server">
        <HeaderTemplate>
            <table class="table">
                <tr>
                    <th>商品编号</th>
                     <th>商品名字</th>
                     <th>商品图片</th>
                     <th>商品介绍</th>
                     <th>商品价格</th>
                     <th>商品状态</th>
                     <th>商品编码</th>
                     <th>商品地址</th>
                     <th>上传时间</th>
                    <th>拍卖时间</th>
                    <th>操作</th>
                </tr>
            
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><%# Eval("AuctionID") %></td>
                <td><%# Eval("AuctionName") %></td>
                <td>
                    <img src="<%# Eval("AuctionPicture") %>" /></td>
                <td><%# Eval("AuctionIntroduce") %></td>
                 <td><%# Eval("AuctionPrice") %></td>
                <td><%# Eval("AuctionState") %></td>
                <%--<td><%# Showddd(Convert.ToInt32(Eval("AuctionCategory"))) %></td>--%>
                <td><%# Eval("AuctionCategory") %></td>
                <td><%# Eval("AuctionCode") %></td>
                <td><%# Eval("AuctionUpload") %></td>
                <td><%# Eval("AuctionAuction") %></td>
                <td>
                    <asp:LinkButton ID="LinkButton1" CssClass="btn btn-danger" OnCommand="LinkButton1_Command" OnClientClick="return confirm('是否确认删除')" CommandArgument='<%# Eval("AuctionID") %>' runat="server">删除</asp:LinkButton>
                    <asp:LinkButton ID="LinkButton2" CssClass="btn btn-danger" OnCommand="LinkButton2_Command" CommandArgument='<%# Eval("AuctionID") %>'  runat="server">修改</asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
</table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
